<%@page import="servlet.AppttypeTable"%>
<%@page import="Logic.Authorizer"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%
	if (session.getAttribute("name") == null) {
		response.sendRedirect("login.jsp");
	} else {
		if (Authorizer.checkRole("1", session.getAttribute("role")
				.toString()) || Authorizer.checkRole("3", session.getAttribute("role").toString()) || (session
						.getAttribute("role").equals("2"))) {
		}
		else
		{
			response.sendRedirect("nopermission.jsp");
						
		}
	}
%>


<!-- Declare the first header -->
<jsp:include page="t_header.jsp" />

<!-- Declare Breadcrumbs options -->
<!--  <div class="breadcrumbs_container">
	<article class="breadcrumbs">
		<a href="appttype_viewappt.jsp">Manage Appointment</a>
		<div class="breadcrumb_divider"></div>
		<a class="current">Modify Appointment</a>
	</article>
</div> -->
<jsp:include page="header.html" />
<!-- Declare sidebar -->
<jsp:include page="t_sidebarappointment.jsp" />

<!-- Main Content -->
<section id="main" class="column">
<% 
	if (request.getParameter("error") != null)
		{
			if (request.getParameter("error").equals("-1"))
				out.print("<h4 class='alert_error'>The operation was not completed successfully.</h4>");
			
			else if (request.getParameter("error").equals("0"))
				out.print("<h4 class='alert_success'>Operation completed successfully.</h4>");
		}
%>
	<article class="module width_full">
		<header>
			<h3>Modify Appointment</h3>
		</header>


		<table class="tablesorter" cellspacing="0">
			<thead>
				<tr>
					<th>Name</th>
					<th>Roles and Responsibilities</th>
					<th>Last Updated</th>
					<th>Delete</th>
				</tr>
			</thead>
			<tbody>
				<%
					AppttypeTable rt = new AppttypeTable(out);
					rt.doGet(request, response);
				%>

			</tbody>
		</table>




	</article>
	<!-- end of content manager article -->
	<div class="spacer"></div>
</section>

<!-- Declare closing tags -->
<jsp:include page="t_footer.jsp" />